﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "IGraphicsGroupBase.h"

namespace gcmp
{
    /// \brief 节点组图形节点
    ///
    /// 用来组织其它图形节点的图形节点。节点组类型可以包含除Element图形表达以外的任意节点，包括自身类型。
    class GCMP_GRAPHICS_NODE_INTERFACE_EXPORT IGraphicsNodeGroup : public IGraphicsGroupBase
    {
        DEFINE_CAST_DERIVED(IGraphicsNodeGroup, IGraphicsGroupBase)

    public:
        /// \brief 析构器
        virtual ~IGraphicsNodeGroup();

    public:

        /// \brief 获取子节点集合
        /// \return 子节点集合
        virtual std::vector<const IGraphicsNode*> GetAllChildren() const = 0;

    public:
        /// \brief 创建默认的节点组图形节点
        /// \return 节点组图形节点
        static OwnerPtr<IGraphicsNodeGroup> Create();
    };
}


